﻿using LY.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LY.DataAccess.Repository
{
    public class BankInfoRepository:BaseRepository
    {
        public U_BankInfo GetBankInfo(int id)
        {
            string sql = "select Id,BankCode,BankName from U_BankInfo where Id=@Id";
            return base.Get<U_BankInfo>(sql, new { Id = id });
        }

        public U_BankInfo GetBankInfo(string bankCode)
        {
            string sql = "select Id,BankCode,BankName from U_BankInfo where BankCode=@BankCode";
            return base.Get<U_BankInfo>(sql, new { BankCode = bankCode });
        }
    }
}
